
package com.shangsi.feignservice.fallbackfactory;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * fallbackfactory 功能更加全面 可以对异常进行获取处理
 * @author dzd
 * @date 2021-12-18
 */
@FeignClient(value = "provider-payment",fallbackFactory = PaymentFallbackFactory.class)
public interface PaymentFeignService2 {
    @RequestMapping("payment/{id}")
    String getPayment(@PathVariable("id") Integer id);
}
